import {createRouter, createWebHistory} from "vue-router";

import router from "./routes.js";
import * as routes from "unplugin-auto-import/auto-imports.js";

const routes  = createRouter({
    history:createWebHistory(),
        routes:routes,

})

router.beforeEach((to, from, next)=>{
    next()
})
router.afterEach((to, from)=>{
    const _title=to.meta.title
    if(_title){
        window.document.title=_title
    }
})
export default router